package com.bjwl.service;

import com.bjwl.pojo.Customer;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: czc
 * @Date:Create：in 2020/4/9 14:53
 * @Description:  客户逻辑层接口
 * @Modified By：
 * @Version: 1.0
 */
public interface CustomerService {
    List<Customer> findAllCustomer();  //查询所有客户
    int addCustomer(Customer customer);      //添加客户
    void deleteCustomer(Integer id);   //删除客户
    Integer byIdUpdateCustomer(Customer customer); //通过id修改客户
    Customer byCnameFindCustomer(Customer customer);//通过cname(客户名称)查询客户

}
